//
//  LoginResponse.m
//  TNS
//
//  Created by jadd on 16/2/1.
//  Copyright © 2016年 zhongyan. All rights reserved.
//

#import "LoginResponse.h"

#define UserDefault_uName  @"userName"

@implementation LoginResponse
- (void)setResponseObject:(id)responseObject {
    _responseObject = responseObject;
    if (responseObject) {
//        NSString *oid = [responseObject objectForKey:@"user_id"];
//        NSString *token = [responseObject objectForKey:@"access_key"];
        NSString *name = [responseObject objectForKey:@"username"];
        [[NSUserDefaults standardUserDefaults] setObject:name forKey:UserDefault_uName];
        while (![[NSUserDefaults standardUserDefaults] synchronize])
        {
        }
    }
}

@end
